class NodeBase:
    def __init__(self, x, y, ob):
        self.x = x
        self.y = y
        self.ob = ob
        self.oc = 0
        self.Ii = 0
        self.f1 = 0
        self.f2 = 0
        self.f3 = 0
        self.f_init()

    def flash(self):
        pass

    def f_init(self):
        if self.ob == -1:
            self.f1 = -1
            self.Ii = -100
        elif self.ob == 1:
            self.f1 = 1
            self.Ii = 100

    def __str__(self):
        return (f"x:{self.x}\n"
                f"y:{self.y}\n"
                f"ob:{self.ob}\n"
                f"oc:{self.oc}\n"
                f"Ii:{self.Ii}\n"
                f"f1:{self.f1}\n"
                f"f2:{self.f2}\n"
                f"f3:{self.f3}\n")
